package org.blogwu.learn.temp.string;

public class StringTest2 {
    public static void main(String[] args) {
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append("S").append("B");
        String sb0 = "SB";
        String sb = "SB";
        String sb2 = stringBuilder.toString();
        System.out.println(sb0 == sb);
        System.out.println(stringBuilder.toString() == sb);
        System.out.println(sb2 == sb);
        System.out.println(sb2 == stringBuilder.toString());


    }
}
